/* Load localized messages according to locale stored in client's cookies.
 * If no such cookie is available (new client), browser's locale will be used.
 */
$(document).ready(function () {
        $.i18n.properties({
            name: 'messages',
            path: _context + 'resources/msg/',
            mode: 'map',
            encoding: "UTF-8",
            cache: true,
            language: _locale
        });
    }
);

function getMessage(key, parameter) {
    return $.i18n.prop(key, parameter);
}